﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Service.Rental
{
    /// <summary>
    /// 业务层统一接口
    /// 插入实体接口规范
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    public interface IAddService<TEntity> where TEntity : Entity.EntityBase
    {
        /// <summary>
        /// 插入单个实体
        /// </summary>
        /// <param name="vp"></param>
        /// <param name="pp"></param>
        /// <returns></returns>
        Entity.VMessage InsertEntity(TEntity entity);
        /// <summary>
        /// 插入实体集合
        /// </summary>
        /// <param name="primaryKey"></param>
        /// <returns></returns>
        Entity.VMessage InsertEntity(IEnumerable<TEntity> entity);
    }
}
